﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace linkouqs.Gamekit
{

    public class BrushWood : MonoBehaviour
    {

        Animator m_Animator;

        void Awake()
        {
            m_Animator = GetComponent<Animator>();
        }

        void OnTriggerEnter2D(Collider2D collision)
        {
            CharacterController2D characterController2D;

            if (CharacterManager.Instance.TryGetCharacter(collision, out characterController2D))
            {
                if (m_Animator)
                {
                    m_Animator.SetTrigger("Walk");
                }
            }
        }

    }

}
